import request from '@/utils/request'

// 获取对话记录
export function listConversationRecords(query) {
  return request({
    url: '/agriculture/guo/record/list',
    method: 'get',
    params: query
  })
}

// 新增对话记录
export function addConversationRecord(data) {
  return request({
    url: '/agriculture/guo/record',
    method: 'post',
    data: data
  })
}

// 新增会话
export function addConversation(data) {
  return request({
    url: '/agriculture/guo/conversation',
    method: 'post',
    data
  })
}

// 拉取会话列表
export function listConversation(query) {
  return request({
    url: '/agriculture/guo/conversation/list',
    method: 'get',
    params: query
  })
}

// 更新会话专家回答者
export function updateConversationExpert(data) {
  return request({
    url: '/agriculture/guo/conversation/updateExpert',
    method: 'put',
    data: data
  })
}